import React from 'react';

import NavMenu from './Menu';
import Logo from './Logo';

import style from './index.less';

interface NavProps {
  isNotLogin?: boolean;
}

const Nav: React.FC<NavProps> = (props: NavProps) => {
  const { isNotLogin } = props;
  return (
    <div className={style.main}>
      <Logo projectTitle="碧歌数据展示工具" />

      {isNotLogin ? null : <NavMenu />}
    </div>
  );
};

Nav.defaultProps = {
  isNotLogin: false,
};

export default Nav;
